import Request from '@/utils/requset.js'
import { queryParams } from '@/uni_modules/uv-ui-tools/libs/function/index.js'

let request = new Request().http
let uploadFile = new Request().upLoadFile
//全局定义请求头
export default {
	getCustomTab:(data)=>{
		return request({url:'addons/fzdc/index/bottom',method:"post",data:data,})
	},
	indexSwiper:(data)=>{
		return request({url:'addons/fzdc/index/rotation',method:"post",data:data,})
	},
	login:(data)=>{
		return request({url:'api/user/login',method:"post",data:data,})
	},
	allGoods:(data)=>{
		return request({url:'api/wanghong.gongyinshang/allgoods',method:"post",data:data,})
	},
	userRole:(data)=>{
		return request({url:'addons/fzdc/index/jiaose',method:"post",data:data,})
	},
	userGroup:(data)=>{
		return request({url:'addons/fzdc/index/shenfen',method:"post",data:data,})
	},
	cardinfo:(data)=>{
		return request({url:'addons/fzdc/index/cardinfo',method:"post",data:data,})
	},
	register:(data)=>{
		return request({url:'api/user/register2',method:"post",data:data,})
	},
	userIdentity:(data)=>{
		return request({url:'api/wanghong.user/identity',method:"post",data:data,})
	},
	referrer:(data)=>{
		return request({url:'api/wanghong.user/referrer',method:"post",data:data,})
	},
	goodslist:(data)=>{
		return request({url:'addons/fzdc/index/goodslist',method:"post",data:data,})
	},
	goodsMain:(data)=>{
		return request({url:'api/wanghong.index/goods',method:"get",data:data,})
	},
	addorder:(data)=>{
		return request({url:'api/wanghong.Order/addorder',method:"post",data:data,})
	},
	addwanghong:(data)=>{
		return request({url:'api/user/addwanghong',method:"post",data:data,})
	},
	celebrity:(data)=>{
		return request({url:'api/wanghong.user/celebrity',method:"get",data:data,})
	},
	goodsTwocate:(data)=>{
		return request({url:'addons/fzdc/index/twolist',method:"post",data:data,})
	},
	orderList:(data)=>{
		return request({url:'addons/fzdc/order/orderlist',method:"post",data:data,})
	},
	orderinfo:(data)=>{
		return request({url:'addons/fzdc/order/orderinfo',method:"get",data:data,})
	},
	index:(data)=>{
		return request({url:'addons/fzdc/index/index',method:"get",data:data,})
	},
	addgongyingshang:(data)=>{
		return request({url:'api/user/addgongyingshang',method:"post",data:data,})
	},
	addgoods:(data)=>{
		return request({url:'api/wanghong.gongyinshang/addgoods',method:"post",data:data,})
	},
	userIndex:(data)=>{
		return request({url:'api/wanghong.user/index',method:"get",data:data,})
	},
	gysAllgoods:(data)=>{
		return request({url:'api/wanghong.gongyinshang/allgoods',method:"post",data:data,})
	},
	wallet:(data)=>{
		return request({url:'api/wanghong.user/wallet',method:"post",data:data,})
	},
	catelist:(data)=>{
		return request({url:'api/wanghong.gongyinshang/catelist',method:"post",data:data,})
	},
	notice:(data)=>{
		return request({url:'addons/fzdc/index/notice',method:"post",data:data,})
	},
	noticeinfo:(data)=>{
		return request({url:'addons/fzdc/index/noticeinfo',method:"post",data:data,})
	},
	userprice:(data)=>{
		return request({url:'api/wanghong.user/userprice',method:"post",data:data,})
	},
	withdrawal:(data)=>{
		return request({url:'api/wanghong.user/withdrawal',method:"post",data:data,})
	},
	getwithdrawal:(data)=>{
		return request({url:'api/wanghong.user/withdrawal',method:"get",data:data,})
	},
	delgoods:(data)=>{
		return request({url:'api/wanghong.gongyinshang/delgoods',method:"post",data:data,})
	},
	editgoods:(data)=>{
		return request({url:'api/wanghong.gongyinshang/editgoods?id='+data.id,method:"post",data:data,})
	},
	editavatar:(data)=>{
		return request({url:'api/wanghong.user/avatar',method:"post",data:data,})
	},
	qianming:(data)=>{
		return request({url:'api/demo/qianming',method:"post",data:data,})
	},
	orderhetong:(data)=>{
		return request({url:'addons/fzdc/order/orderhetong',method:"post",data:data,})
	},
	jiaoseinfo:(data)=>{
		return request({url:'addons/fzdc/index/jiaoseinfo',method:"post",data:data,})
	},
	xianxiahetong:(data)=>{
		return request({url:'api/wanghong.user/xianxiahetong',method:"post",data:data,})
	},
	shiminginfo:(data)=>{
		return request({url:'api/wanghong.user/shiminginfo',method:"post",data:data,})
	},
	getHetong:(data)=>{
		return request({url:'api/wanghong.user/xianxiahetong',method:"get",data:data,})
	},
	wanghonginfo:(data)=>{
		return request({url:'api/user/addwanghong',method:"get",data:data,})
	},
      
	gonghuoshangqianming:(data)=>{
	  	return request({url:'api/demo/gonghuoshang',method:"post",data:data,})
	  },
	  getgonghuoshang:(data)=>{
	    	return request({url:'api/demo/gonghuoshang',method:"get",data:data,})
	    },
	 gongyingshanginfo:(data)=>{
	 	return request({url:'api/user/addgongyingshang',method:"get",data:data,})
	 }, 
	 wanghongorderlist:(data)=>{
	 	return request({url:'addons/fzdc/order/wanghongorderlist',method:"get",data:data,})
	 }, 
	 ordercancel:(data)=>{
	 	return request({url:'addons/fzdc/order/ordercancel',method:"post",data:data,})
	 }, 
	 referrerinfo:(data)=>{
	 	return request({url:'api/wanghong.user/referrer',method:"get",data:data,})
	 }, 
	 demoWanghong:(data)=>{
	 	return request({url:'api/demo/wanghong',method:"post",data:data,})
	 }, 
	 notification:(data)=>{
	 	return request({url:'api/wanghong.user/notification',method:"get",data:data,})
	 }, 
	 notificationInfo:(data)=>{
	 	return request({url:'api/wanghong.user/notificationInfo',method:"get",data:data,})
	 }, 
	 hetongList:(data)=>{
	 	return request({url:'api/wanghong.user/hetong',method:"get",data:data,})
	 }, 
	 hetonginfo:(data)=>{
	 	return request({url:'api/wanghong.user/hetonginfo',method:"get",data:data,})
	 }, 
	 richtext:(data)=>{
	 	return request({url:'addons/fzdc/index/richtext?id=3',method:"get",data:data,})
	 },
	 config:(data)=>{
	 	return request({url:'addons/fzdc/index/config',method:"get",data:data,})
	 },
	 wanghongpingtai:(data)=>{
	 	return request({url:'addons/fzdc/index/wanghongpingtai',method:"get",data:data,})
	 },
	 getauthsmsvcode:(data)=>{
	 	return request({url:'api/sms/getauthsmsvcode',method:"post",data:data,})
	 },
	 indexwonav:(data)=>{
	 	return request({url:'addons/fzdc/index/wonav',method:"post",data:data,})
	 },
	 resetpwd:(data)=>{
	 	return request({url:'api/user/resetpwd',method:"post",data:data,})
	 },
	 richtexts:(data)=>{
	 	return request({url:'addons/fzdc/index/richtext?id=6',method:"get",data:data,})
	 },
	 tjWanghong:(data)=>{
	 	return request({url:'api/wanghong.user/tuijianwanghong',method:"get",data:data,})
	 },
	 tuijianwanghonginfo:(data)=>{
	 	return request({url:'api/wanghong.user/tuijianwanghonginfo',method:"post",data:data,})
	 },
	 nologinindex:(data)=>{
	 	return request({url:'addons/fzdc/index/nologin',method:"post",data:data,})
	 },
	 indexshow:(data)=>{
	 	return request({url:'addons/fzdc/index/indexshow',method:"post",data:data,})
	 },
	 
	 
      uploadImg: (data) => {
        return uploadFile(data)
      },
    
	
	
	
	
	
	
	//我的
}
/*
请求样式：
    自定义名字: function(data) {
        return request({
            url: "/banner", //请求头
            method:"GET", //请求方式 
            data: data,    //请求数据
            token: token, // 可传  
            hideLoading: false, //加载样式
        })
    },
*/